package com.seal.commons.infrastructure.facade.jms;

/**
 * 功能描述:MessageCallback <br/>
 *
 * @author huangyong
 * @date: 2020-04-25 20:59<br/>
 * @since JDK 1.8
 */
public interface MessageCallback {

    /**
     * 异步发送消息成功回调
     */
    void onSuccess(String messageId, String brokerName, int queueId);


    void onUnknown(String messageId, String brokerName, int queueId);

    /**
     * 异步发送异常回调
     * @param e
     */
    void onException(Throwable e);
}